package com.jian.mall.produce.feign;

import com.jian.mall.common.to.elasticsearch.SkuEsTo;
import com.jian.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("mall-search")
public interface SearchFeignService {
    @PostMapping("/search/search/produce/save")
    R saveProduct(@RequestBody List<SkuEsTo> skuEsTo);
}
